# Copyright (c) 2007-2016 Hartmut Kaiser
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

###############################################################################

if(HPX_WITH_IO_COUNTERS)
  set(root "${PROJECT_SOURCE_DIR}/hpx/components/performance_counters/io")

  if(HPX_WITH_DEFAULT_TARGETS)
    add_hpx_component(io_counters
      FOLDER "Core/Components/Counters"
      HEADER_ROOT ${root}
      AUTOGLOB
      PLUGIN)
  endif()

  add_hpx_pseudo_dependencies(components.performance_counters_.io
    io_counters_component)
  add_hpx_pseudo_dependencies(core components.performance_counters_.io)
endif()
